<template>
<div>
  <h2>测试遍历数组<人员列表></h2>
  <ul>
  	<li v-for="(p,index) in persons">
  	  {{index}}--{{p.name}}--{{p.age}}
  	</li>
  </ul>
  <h2>测试遍历对象<汽车信息></h2>
  <ul>
  	<li v-for="(value,name) in car">
  	  {{name}}--{{value}}
  	</li>
  </ul>
  <h2>测试遍历次数</h2>
  <ul>
  	<li v-for="value in num">
  	  {{value}}
  	</li>
  </ul>
</div>
</template>
<script>
export default{
  data(){
  	return {
  	  persons:[{
  	  	id:"001",
  	  	name:"张三",
  	  	age:22,
  	  },{
  	  	id:"002",
  	  	name:"李四",
  	  	age:24,
  	  },{
  	  	id:"003",
  	  	name:"王五",
  	  	age:23,
  	  }],
  	  car:{
  	  	name:"奥迪A8",
  	  	price:"70万元",
  	  	color:"黑色"
  	  },
  	  num:5,
  	}
  }
}
</script>